<div class="main-container">
  <div class="row">
    <div fGrid="6" class="free-demo-board">
      <p>
        {{'DEMO.CHECKBOX.DESCRIPTION' | translate}}
      </p>
      <hr>
      <h3 class="free-head-title">{{'API-OPTION' | translate}}<span class="symbol component"></span></h3>

      <div class="free-demo-row">
        <h3 class="free-title">free-checkbox</h3>
        <p>{{'COMPONENT.CHECKBOX' | translate}}</p>
        <free-table>
          <free-table-header>
            <free-table-row>
              <free-table-head><ng-template>{{'PROPERTY' | translate}}</ng-template></free-table-head>
              <free-table-head><ng-template>{{'TYPE' | translate}}</ng-template></free-table-head>
              <free-table-head><ng-template>{{'DESCRIPTION' | translate}}</ng-template></free-table-head>
            </free-table-row>
          </free-table-header>

          <free-table-body>
            <free-table-row>
              <free-table-cell>label</free-table-cell>
              <free-table-cell>
                <ng-template><code>String</code></ng-template>
              </free-table-cell>
              <free-table-cell>
                <ng-template>{{'DEMO.CHECKBOX.OPTION.0' | translate}}</ng-template>
              </free-table-cell>
            </free-table-row>
            <free-table-row>
              <free-table-cell>name</free-table-cell>
              <free-table-cell>
                <ng-template><code>String</code></ng-template>
              </free-table-cell>
              <free-table-cell>
                <ng-template>{{'DEMO.CHECKBOX.OPTION.1' | translate}}</ng-template>
              </free-table-cell>
            </free-table-row>
            <free-table-row>
              <free-table-cell>checked</free-table-cell>
              <free-table-cell>
                <ng-template><code>Boolean</code></ng-template>
              </free-table-cell>
              <free-table-cell>
                <ng-template>{{'DEMO.CHECKBOX.OPTION.2' | translate}}</ng-template>
              </free-table-cell>
            </free-table-row>
            <free-table-row>
              <free-table-cell>disabled</free-table-cell>
              <free-table-cell>
                <ng-template><code>Boolean</code></ng-template>
              </free-table-cell>
              <free-table-cell>
                <ng-template>{{'DEMO.CHECKBOX.OPTION.3' | translate}}</ng-template>
              </free-table-cell>
            </free-table-row>
            <free-table-row>
              <free-table-cell>styleClass</free-table-cell>
              <free-table-cell>
                <ng-template><code>String</code></ng-template>
              </free-table-cell>
              <free-table-cell>
                <ng-template>{{'DEMO.CHECKBOX.OPTION.4' | translate}}</ng-template>
              </free-table-cell>
            </free-table-row>
            <free-table-row>
              <free-table-cell>binary</free-table-cell>
              <free-table-cell>
                <ng-template><code>Boolean</code></ng-template>
              </free-table-cell>
              <free-table-cell>
                <ng-template>{{'DEMO.CHECKBOX.OPTION.5' | translate}}</ng-template>
              </free-table-cell>
            </free-table-row>
          </free-table-body>
        </free-table>
      </div>
    </div>

    <div class="free-demo-board" fGrid="6">
      <div class="free-card-board">
        <h3 class="free-toolbar">Import</h3>
        <free-tab-group direction="right" theme="line">
          <free-tab header="CODE">
            <free-code lang="typescript">
              import &#123;CheckboxModule&#125; from 'freeng/freeng';
            </free-code>
          </free-tab>
        </free-tab-group>
      </div>

      <div class="free-card-board">
        <h3 class="free-toolbar">Default</h3>
        <free-tab-group direction="right">
          <free-tab header="PREVIEW">
            Selected value: {{checked}}
            <free-checkbox label="Checkbox" [value]="'Item1'" [(ngModel)]="checked"></free-checkbox>
          </free-tab>
          <free-tab header="CODE">
            <free-code lang="html">
              &lt;free-checkbox label="Checkbox" [value]="'Item1'" [(ngModel)]="checked"&gt;&lt;/free-checkbox&gt;
            </free-code>
          </free-tab>
        </free-tab-group>
      </div>

      <div class="free-card-board">
        <h3 class="free-toolbar">Boolean</h3>
        <free-tab-group direction="right">
          <free-tab header="PREVIEW">
            {{binaryChecked}}
            <free-checkbox [(ngModel)]="binaryChecked" label="Remember Password" [binary]="true"></free-checkbox>
          </free-tab>
          <free-tab header="CODE">
            <free-code lang="html">
              &lt;free-checkbox [(ngModel)]="binaryChecked" label="Remember Password" [binary]="true"&gt;&lt;/free-checkbox&gt;
            </free-code>
          </free-tab>
        </free-tab-group>
      </div>

      <div class="free-card-board">
        <h3 class="free-toolbar">Disabled</h3>
        <free-tab-group direction="right">
          <free-tab header="PREVIEW">
            <free-checkbox [disabled]="true" [checked]="true" label="Disabled"></free-checkbox>
          </free-tab>
          <free-tab header="CODE">
            <free-code lang="html">
              &lt;free-checkbox [disabled]="true" [checked]="true" label="disabled checkbox"&gt;&lt;/free-checkbox&gt;
            </free-code>
          </free-tab>
        </free-tab-group>
      </div>

      <div class="free-card-board">
        <h3 class="free-toolbar">Group</h3>
        <free-tab-group direction="right">
          <free-tab header="PREVIEW">
            <free-checkbox value="guangdong" [(ngModel)]="selectedCity" label="guangdong"></free-checkbox>
            <free-checkbox value="beijing" [(ngModel)]="selectedCity" label="beijing"></free-checkbox>
            <free-checkbox value="shanghai" [(ngModel)]="selectedCity" label="shanghai"></free-checkbox>

            <p style="width: 100%;margin-top: 20px">
              select city：<span *ngFor="let city of selectedCity" style="margin-right:10px">{{city}}</span>
            </p>
          </free-tab>
          <free-tab header="CODE">
            <free-code lang="html">
              &lt;free-checkbox value="guangdong" [(ngModel)]="selectedCity" label="guangdong"&gt;&lt;/free-checkbox&gt;
              &lt;free-checkbox value="beijing" [(ngModel)]="selectedCity" label="beijing"&gt;&lt;/free-checkbox&gt;
              &lt;free-checkbox value="shanghai" [(ngModel)]="selectedCity" label="shanghai"&gt;&lt;/free-checkbox&gt;
            </free-code>
            <h4>Javascript</h4>
            <free-code lang="javascript">
              this.selectedCity = ['guangdong'];
            </free-code>
          </free-tab>
        </free-tab-group>
      </div>
    </div>
  </div>

  <blockquote>FreeNG - {{'MOTTO' | translate}}</blockquote>
</div>
